nf

您所在的位置:网站首页 install plugins vaildate nf

nf

2024-07-12 16:09| 来源: 网络整理| 查看: 265

A Nextflow plugin to work with validation of pipeline parameters and sample sheets.

nf-validation has now been renamed to nf-schema.

nf-validation has now been renamed to nf-schema. The nf-validation plugin will not receive any future updates. Please update your pipelines to use nf-schema instead. This change was necessary to prevent older versions of nf-core pipelines from with unpinned plugin references from breaking when updating to the latest version of nf-validation. Please pin the version of nf-schema in your pipeline's nextflow.config file:

plugins { id '[email protected]' } Introduction

This Nextflow plugin provides a number of functions that can be included into a Nextflow pipeline script to work with parameter and sample sheet schema. Using these functions you can:

📖 Print usage instructions to the terminal (for use with --help) ✍️ Print log output showing parameters with non-default values ✅ Validate supplied parameters against the pipeline schema 📋 Validate the contents of supplied sample sheet files 🛠️ Create a Nextflow channel with a parsed sample sheet

Supported sample sheet formats are CSV, TSV and YAML (simple).

Quick Start

Declare the plugin in your Nextflow pipeline configuration file:

nextflow.configplugins { id 'nf-validation' }

This is all that is needed - Nextflow will automatically fetch the plugin code at run time.

[!NOTE] The snippet above will always try to install the latest version, good to make sure that the latest bug fixes are included! However, this can cause difficulties if running offline. You can pin a specific release using the syntax [email protected]

You can now include the plugin helper functions into your Nextflow pipeline:

main.nfinclude { validateParameters; paramsHelp; paramsSummaryLog; fromSamplesheet } from 'plugin/nf-validation' // Print help message, supply typical command line usage for the pipeline if (params.help) { log.info paramsHelp("nextflow run my_pipeline --input input_file.csv") exit 0 } // Validate input parameters validateParameters() // Print summary of supplied parameters log.info paramsSummaryLog(workflow) // Create a new channel of metadata from a sample sheet // NB: `input` corresponds to `params.input` and associated sample sheet schema ch_input = Channel.fromSamplesheet("input") Dependencies Java 11 or later https://github.com/everit-org/json-schema Slack channel

There is a dedicated nf-validation Slack channel in the Nextflow Slack workspace.

Credits

This plugin was written based on code initially written within the nf-core community, as part of the nf-core pipeline template.

We would like to thank the key contributors who include (but are not limited to):

Júlia Mir Pedrol (@mirpedrol) Nicolas Vannieuwkerke (@nvnieuwk) Kevin Menden (@KevinMenden) Phil Ewels (@ewels)


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3